import {lazy} from "react";
import {Navigate} from "react-router-dom";


const MyProject = lazy(() => import("./MyProject"))
const UpProject = lazy(() => import("./UpProject"))
const ProjectScore = lazy(() => import("./ProjectScore"))
const ProjectData = lazy(() => import("./ProjectData"))

export default [
  // 主页面路由
  {
    path: "/main/project", children: [
      {path: "/main/project", element: <Navigate replace to="/main/project/myProject"/>},
      {path: "/main/project/myProject", element: <MyProject/>},
      {path: "/main/project/upProject", element: <UpProject/>},
      {path: "/main/project/projectScore", element: <ProjectScore/>},
      {path: "/main/project/projectData", element: <ProjectData/>}
    ]
  },
]